package com.example.demo.service;

import com.example.demo.entity.MusicCollection;
import com.example.demo.entity.MusicComment;
import com.example.demo.entity.NoteCollection;
import com.example.demo.vo.ViewMusicCommentInfo;
import com.example.demo.vo.ViewNoteCommentInfo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface MusicCommentService {
    PageInfo<ViewMusicCommentInfo> findMusicCommentInfo(Integer pageNum, Integer pageSize);
    //pageNum:当前是第几页   pageSize：每一页有多少条数据
    PageInfo<MusicComment> findMusicCommentPages(Integer pageNum, Integer pageSize);

    ViewMusicCommentInfo findMusicCommentinfoId(Integer music_comment_id);

    List<MusicComment> findMusicCommentAll();

    MusicComment findMusicCommentDyId(Integer music_comment_id);

    Integer insertMusicComment(MusicComment musicComment);

    Integer updateMusicComment(MusicComment musicComment);

    Integer deleteMusicComment(Integer music_comment_id);


    //与用户表的用户名、头像相关联，且根据歌曲id查找，按点赞量排序
    PageInfo<ViewMusicCommentInfo> findMusicCommentInfomusicid(Integer music_id);

    //点击举报按钮将会把评论状态从正常修改为被举报
    Integer updateStatus(Integer music_id);


    //根据歌曲id计数
    Integer countcomment(Integer music_id);



}


